package com.ea.eadp.nexus.test.pageDefinition;

import com.ea.eadp.nexus.test.pageDefinition.TwoFactorAuth_PC;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

public class TwoFactorAuthWeb extends TwoFactorAuth_PC {
    public TwoFactorAuthWeb(WebDriver driver) {
        super(driver);
    }
    //override the btn_submit in super class
    private By btn_submit = By.id("btnTFALogin");

    //using the btn_submit in this class
    @Override
    public void clickSubmitWithoutWait() throws Exception {
        driver.switchTo().window(this.operationWindowHandle);
        waitForWebElementPresent(btn_submit);
        driver.findElement(btn_submit).click();
    }
}
